package com.lanou.pianke.admin.adminLogin.controller;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/")
public class AdminLogin {
    @PostMapping("login")
    public String login(String uname,String password){
//        System.out.println("uname-----"+ uname);
//        System.out.println("password-----" + password);
        if ("admin".equals(uname) && "123".equals(password)){
            return "登录成功";
        }else {
            return "登录失败";
        }
    }
}
